#include<map>
#include<iostream>
using namespace std;
void getData(map<char,int>& m){
    for(int i=0;i<26;i++)
        if(i%2==0)m['a'+i]=i+1;
        else m.insert({'a'+i,i+1});
}
void putData(map<char,int>m,string str){
    cout<<str<<endl;
    for(auto val:m)
        cout<<"key:"<<val.first<<"\tval:"<<val.second<<endl;
}
int main(){
    map<char,int>mp;
    getData(mp);
    putData(mp,"原始数据：");
    auto air=mp.find('d');
    if(air!=mp.end())
        cout<<"key"<<air->first<<"val"<<air->second<<endl;
    mp.erase('a');
    putData(mp,"数据删除：");
    return 0;
}